#ifndef SPACEEXPWIDGET_H
#define SPACEEXPWIDGET_H

#include <qmetatype.h>
#include <qtextstream.h>
#include <QtCore>
#include <QtGui>

#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <X11/Xlib.h>
#include <spnav.h>


using namespace std;

class SpaceExpWidget:public QWidget {
    Q_OBJECT

    public:
            SpaceExpWidget(QWidget *parent = 0);
            ~SpaceExpWidget();

            int x;
            int y;
            int z;
            int rx;
            int ry;
            int rz;

            int button;

            // spnav event type
            spnav_event dEvent;

            int open();
            void close();
            void pollDevice();

    public slots:

    signals:

    protected:

    private:


};






#endif // SPACEEXPWIDGET_H
